package com.geek2.supermarket.dao;

import com.geek2.supermarket.pojo.SmbmsUser;
import com.geek2.supermarket.pojo.SmbmsRole;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface UserMapper {

    List<SmbmsUser> queryAllUser(Map<String, Object> map);

    List<SmbmsRole> queryRole();


    SmbmsUser queryUser(Map<String, Object> map);

    int updateUser(Map<String, Object> map);

    int addUser(SmbmsUser smbmsUser);

    int delUser(String uid);

    int getUserCount(HashMap<String, Object> map);
}
